<?php
include '../../libs/config/database.php';
include '../../libs/core/common.inc.php';
$db = import('core_db');
$db->connect($dsn);
$res = $db->query('SHOW FULL COLUMNS FROM `posts`');
$tables = array();
while (($row = $db->fetchRow($res))) {
   $tables[] = reset($row);
}
$db->freeRes($res);
dump($tables);
?>